// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeVSwitchesResponse.h"

namespace aliyun { namespace Ecs {

DescribeVSwitchesResponse::DescribeVSwitchesResponse() {
}

const string& DescribeVSwitchesResponse::VSwitch::GetVSwitchId(void) const {
  return VSwitchId_;
}

const string& DescribeVSwitchesResponse::VSwitch::GetVpcId(void) const {
  return VpcId_;
}

const string& DescribeVSwitchesResponse::VSwitch::GetStatus(void) const {
  return Status_;
}

const string& DescribeVSwitchesResponse::VSwitch::GetCidrBlock(void) const {
  return CidrBlock_;
}

const string& DescribeVSwitchesResponse::VSwitch::GetZoneId(void) const {
  return ZoneId_;
}

int64 DescribeVSwitchesResponse::VSwitch::GetAvailableIpAddressCount(void) const {
  return AvailableIpAddressCount_;
}

const string& DescribeVSwitchesResponse::VSwitch::GetDescription(void) const {
  return Description_;
}

const string& DescribeVSwitchesResponse::VSwitch::GetVSwitchName(void) const {
  return VSwitchName_;
}

const string& DescribeVSwitchesResponse::VSwitch::GetCreationTime(void) const {
  return CreationTime_;
}

const std::vector<DescribeVSwitchesResponse::VSwitch>& DescribeVSwitchesResponse::GetVSwitches(void) const {
  return VSwitches_;
}

int DescribeVSwitchesResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeVSwitchesResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeVSwitchesResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* DescribeVSwitchesResponse::BaseKey(void) {
  return "DescribeVSwitchesResponse";
}

void DescribeVSwitchesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int VSwitches__length = 0;
  UnmarshallerInt(VSwitches__length, response_map, "DescribeVSwitchesResponse.VSwitches.Length");
  if(VSwitches__length >= 0) {
    VSwitches_.resize(VSwitches__length);
    for(int i1 = 0; i1 < VSwitches__length; i1++) {
      UnmarshallerString(VSwitches_[i1].VSwitchId_, response_map, "DescribeVSwitchesResponse.VSwitches["+string_ValueOfInt(i1)+"].VSwitchId");
      UnmarshallerString(VSwitches_[i1].VpcId_, response_map, "DescribeVSwitchesResponse.VSwitches["+string_ValueOfInt(i1)+"].VpcId");
      UnmarshallerString(VSwitches_[i1].Status_, response_map, "DescribeVSwitchesResponse.VSwitches["+string_ValueOfInt(i1)+"].Status");
      UnmarshallerString(VSwitches_[i1].CidrBlock_, response_map, "DescribeVSwitchesResponse.VSwitches["+string_ValueOfInt(i1)+"].CidrBlock");
      UnmarshallerString(VSwitches_[i1].ZoneId_, response_map, "DescribeVSwitchesResponse.VSwitches["+string_ValueOfInt(i1)+"].ZoneId");
      UnmarshallerInt64(VSwitches_[i1].AvailableIpAddressCount_, response_map, "DescribeVSwitchesResponse.VSwitches["+string_ValueOfInt(i1)+"].AvailableIpAddressCount");
      UnmarshallerString(VSwitches_[i1].Description_, response_map, "DescribeVSwitchesResponse.VSwitches["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerString(VSwitches_[i1].VSwitchName_, response_map, "DescribeVSwitchesResponse.VSwitches["+string_ValueOfInt(i1)+"].VSwitchName");
      UnmarshallerString(VSwitches_[i1].CreationTime_, response_map, "DescribeVSwitchesResponse.VSwitches["+string_ValueOfInt(i1)+"].CreationTime");
    } // for(int i1 = 0; i1 < VSwitches__length; i1++) {
  } // if(VSwitches__length >= 0) {

  UnmarshallerInt(TotalCount_, response_map, "DescribeVSwitchesResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeVSwitchesResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeVSwitchesResponse.PageSize");
}


} } // namespace aliyun { namespace Ecs {

// end of file 
